package com.dss.auto_deploy.vo;

import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.springframework.format.annotation.DateTimeFormat;

import java.util.Date;
/**
* @author dongshoushan
* @date 2022-09-22 14:39:03
*/
@Data
@NoArgsConstructor
@AllArgsConstructor
@Builder
@ApiModel(value = "docker仓库")
public class AdmDockerRegistryVo {

    /**
    * 主键
    */
    @ApiModelProperty(value = "主键")
    private Long id;
    @ApiModelProperty(value = "挂载路径",example = "")
    private String storagePath;

    /**
     * 容器id
     */
    @ApiModelProperty(value = "容器id")
    private String containerId;
    /**
    * 仓库名称
    */
    @ApiModelProperty(value = "仓库名称")
    private String registryName;
    private String errorMsg;
    private String state;
    /**
    * 所在服务器id
    */
    @ApiModelProperty(value = "所在服务器id")
    private Long serverId;
    private String ip;

    /**
    * 端口号
    */
    @ApiModelProperty(value = "端口号")
    private Integer port;

    /**
    * docker仓库web地址
    */
    @ApiModelProperty(value = "docker仓库web地址")
    private String registryWebUrl;

    /**
    * 用户名
    */
    @ApiModelProperty(value = "用户名")
    private String username;

    /**
    * 密码
    */
    @ApiModelProperty(value = "密码")
    private String password;

    /**
    * 创建时间
    */
    @ApiModelProperty(value = "创建时间")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date createTime;

    /**
    * 更新时间
    */
    @ApiModelProperty(value = "更新时间")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date updateTime;
    /**
     * 安装时间
     */
    @ApiModelProperty(value = "安装时间")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date installTime;
    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }
    public String getRegistryName() {
        return registryName;
    }

    public void setRegistryName(String registryName) {
        this.registryName = registryName;
    }
    public Long getServerId() {
        return serverId;
    }

    public void setServerId(Long serverId) {
        this.serverId = serverId;
    }
    public Integer getPort() {
        return port;
    }

    public void setPort(Integer port) {
        this.port = port;
    }
    public String getRegistryWebUrl() {
        return registryWebUrl;
    }

    public void setRegistryWebUrl(String registryWebUrl) {
        this.registryWebUrl = registryWebUrl;
    }
    public String getUsername() {
        return username;
    }

    public void setUsername(String username) {
        this.username = username;
    }
    public String getPassword() {
        return password;
    }

    public void setPassword(String password) {
        this.password = password;
    }
    public Date getCreateTime() {
        return createTime;
    }

    public void setCreateTime(Date createTime) {
        this.createTime = createTime;
    }
    public Date getUpdateTime() {
        return updateTime;
    }

    public void setUpdateTime(Date updateTime) {
        this.updateTime = updateTime;
    }


}
